home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Exec 5 / CD_Magazyn_EXEC_nr_5.iso / eXec / Krotkie opisy / Programy / XADMaster / xad_MakeSFX.lha / SDI_compiler.h < prev    next >
C/C++ Source or Header  |  2000-12-09  |  2KB  |  95 lines

  1. #ifndef SDI_COMPILER_H
  2. #define SDI_COMPILER_H
  3.  
  4. /* Includeheader
  5.  
  6.     Name:        SDI_compiler.h
  7.     Versionstring:    $VER: SDI_compiler.h 1.5 (29.07.2000)
  8.     Author:        SDI
  9.     Distribution:    PD
  10.     Description:    defines to hide compiler stuff
  11.  
  12.  1.1   25.06.98 : created from data made by Gunter Nikl
  13.  1.2   17.11.99 : added VBCC
  14.  1.3   29.02.00 : fixed VBCC REG define
  15.  1.4   30.03.00 : fixed SAVEDS for VBCC
  16.  1.5   29.07.00 : added #undef statements (needed e.g. for AmiTCP together with vbcc)
  17. */
  18.  
  19. #ifdef ASM
  20. #undef ASM
  21. #endif
  22. #ifdef REG
  23. #undef REG
  24. #endif
  25. #ifdef LREG
  26. #undef LREG
  27. #endif
  28. #ifdef CONST
  29. #undef CONST
  30. #endif
  31. #ifdef SAVEDS
  32. #undef SAVEDS
  33. #endif
  34. #ifdef INLINE
  35. #undef INLINE
  36. #endif
  37. #ifdef REGARGS
  38. #undef REGARGS
  39. #endif
  40. #ifdef STDARGS
  41. #undef STDARGS
  42. #endif
  43.  
  44. /* first "exceptions" */
  45.  
  46. #if defined(__MAXON__)
  47.   #define STDARGS
  48.   #define REGARGS
  49.   #define SAVEDS
  50.   #define INLINE inline
  51. #elif defined(__VBCC__)
  52.   #define STDARGS
  53.   #define REGARGS
  54.   #define INLINE
  55.   #define REG(reg,arg) __reg(#reg) arg
  56. #elif defined(__STORM__)
  57.   #define STDARGS
  58.   #define REGARGS
  59.   #define INLINE inline
  60. #elif defined(__SASC)
  61.   #define ASM(arg) arg __asm
  62. #elif defined(__GNUC__)
  63.   #define REG(reg,arg) arg __asm(#reg)
  64.   #define LREG(reg,arg) register REG(reg,arg)
  65. #endif
  66.  
  67. /* then "common" ones */
  68.  
  69. #if !defined(ASM)
  70.   #define ASM(arg) arg
  71. #endif
  72. #if !defined(REG)
  73.   #define REG(reg,arg) register __##reg arg
  74. #endif
  75. #if !defined(LREG)
  76.   #define LREG(reg,arg) register arg
  77. #endif
  78. #if !defined(CONST)
  79.   #define CONST const
  80. #endif
  81. #if !defined(SAVEDS)
  82.   #define SAVEDS __saveds
  83. #endif
  84. #if !defined(INLINE)
  85.   #define INLINE __inline
  86. #endif
  87. #if !defined(REGARGS)
  88.   #define REGARGS __regargs
  89. #endif
  90. #if !defined(STDARGS)
  91.   #define STDARGS __stdargs
  92. #endif
  93.  
  94. #endif /* SDI_COMPILER_H */
  95.